package com.neusmart.common.dialog;

import android.content.Context;
import android.widget.TextView;

import com.neusmart.common.R;
import com.neusmart.common.effects.EffectsType;

/**
 * Custom Loading Dialog
 * <p/>
 * roy
 */
public class CustomLoadingDialog extends BaseDialog {

    private TextView tvHint;

    public CustomLoadingDialog(Context context) {
        super(context);
        init();
    }

    @Override
    protected int getLayoutResID() {
        return R.layout.custom_loading_dialog;
    }

    @Override
    protected void initView() {
        setCancelable(true);
        setCanceledOnTouchOutside(false);
        tvHint = (TextView) findViewById(R.id.tv_hint);
    }

    public void setHintText(String txt) {
        tvHint.setText(txt);
    }

    public void setHintText(int txtId) {
        tvHint.setText(txtId);
    }

    @Override
    protected EffectsType initEffectsType() {
        return null;
    }
}
